home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / dev / misc / CGraphX_DevKit.lha / CGraphX / Assembler / Include / cybergraphx / cybergraphics.i
Encoding:
Text File  |  1998-03-09  |  4.7 KB  |  190 lines

  1. ;*
  2. ;*    $VER: cybergraphics.i 41.18 (21.02.1998)
  3. ;*
  4. ;*    include file for cybergraphics.library
  5. ;*
  6. ;*    Copyright © 1996-1998 by phase5 digital products
  7. ;*      All Rights reserved.
  8. ;*
  9. ;*
  10.  
  11.             IFND    CYBERGRAPHX_CYBERGRAPHICS_I
  12. CYBERGRAPHX_CYBERGRAPHICS_I    SET    1
  13.  
  14.  
  15.             INCLUDE "exec/nodes.i"
  16.             INCLUDE "utility/tagitem.i"
  17.             INCLUDE    "graphics/displayinfo.i"
  18.  
  19. ;
  20. ; Definition of CyberModeNode (Returned in AllocModeList)
  21. ;
  22.             STRUCTURE    CyberModeNode,0
  23.             STRUCT    cmn_Node,LN_SIZE
  24.             STRUCT    cmn_ModeText,DISPLAYNAMELEN    ; name for this mode
  25.             ULONG    cmn_DisplayID            ; display id associated with the node
  26.             UWORD    cmn_Width            ; visible width
  27.             UWORD    cmn_Height            ; visible height
  28.             UWORD    cmn_Depth            ; display depth
  29.             APTR    cmn_DisplayTagList        ; taglist with extended ModeID information
  30.             LABEL    cmn_SIZEOF
  31.  
  32.         
  33. ;
  34. ; Parameters for GetCyberMapAttr()
  35. ;
  36.  
  37. CYBRMATTR_XMOD        EQU    ($80000001)    ; function returns BytesPerRow if its called with this parameter
  38. CYBRMATTR_BPPIX        EQU    ($80000002)    ; BytesPerPixel shall be returned
  39. CYBRMATTR_DISPADR    EQU    ($80000003)    ; do not use this ! private tag
  40. CYBRMATTR_PIXFMT    EQU    ($80000004)    ; the pixel format is returned
  41. CYBRMATTR_WIDTH        EQU    ($80000005)    ; returns width in pixels
  42. CYBRMATTR_HEIGHT    EQU    ($80000006)    ; returns height in lines
  43. CYBRMATTR_DEPTH        EQU    ($80000007)    ; returns bits per pixel
  44. CYBRMATTR_ISCYBERGFX    EQU    ($80000008)    ; returns if supplied bitmap is a cybergfx one
  45. CYBRMATTR_ISLINEARMEM    EQU    ($80000009)    ; returns -1 if supplied bitmap is linear accessable
  46.  
  47. ;
  48. ; Parameters for GetCyberIDAttr()
  49. ;
  50.  
  51. CYBRIDATTR_PIXFMT    EQU    ($80000001)    ; the pixel format is returned
  52. CYBRIDATTR_WIDTH    EQU    ($80000002)    ; returns visible width in pixels
  53. CYBRIDATTR_HEIGHT    EQU    ($80000003)    ; returns visible height in lines
  54. CYBRIDATTR_DEPTH    EQU    ($80000004)    ; returns bits per pixel
  55. CYBRIDATTR_BPPIX    EQU    ($80000005)    ; BytesPerPixel shall be returned
  56.  
  57. ;
  58. ; Tags for CModeRequestTagList()
  59. ;
  60.  
  61. CYBRMREQ_TB        EQU    (TAG_USER+$40000)
  62. ;
  63. ; FilterTags
  64. ;
  65. CYBRMREQ_MinDepth    EQU    (CYBRMREQ_TB+0)        ; Minimum depth for displayed screenmode
  66. CYBRMREQ_MaxDepth    EQU    (CYBRMREQ_TB+1)        ; Maximum depth  "       "        "
  67. CYBRMREQ_MinWidth    EQU    (CYBRMREQ_TB+2)        ; Minumum width  "       "        "
  68. CYBRMREQ_MaxWidth    EQU    (CYBRMREQ_TB+3)        ; Maximum width  "       "        "
  69. CYBRMREQ_MinHeight    EQU    (CYBRMREQ_TB+4)        ; Minumum height "       "        "
  70. CYBRMREQ_MaxHeight    EQU    (CYBRMREQ_TB+5)        ; Minumum height "       "        "
  71. CYBRMREQ_CModelArray    EQU    (CYBRMREQ_TB+6)        ; Filters certain color models
  72.  
  73. CYBRMREQ_WinTitle    EQU    (CYBRMREQ_TB+20
  74. CYBRMREQ_OKText        EQU    (CYBRMREQ_TB+21
  75. CYBRMREQ_CancelText    EQU    (CYBRMREQ_TB+22
  76.  
  77. CYBRMREQ_Screen        EQU    (CYBRMREQ_TB+30        ; Screen you wish the Requester to opened on
  78.  
  79. ;
  80. ; Tags for BestCyberModeID()
  81. ;
  82.  
  83. CYBRBIDTG_TB        EQU    (TAG_USER+$50000)
  84. ;
  85. ; FilterTags
  86. ;
  87. CYBRBIDTG_Depth        EQU    (CYBRBIDTG_TB+0)
  88. CYBRBIDTG_NominalWidth    EQU    (CYBRBIDTG_TB+1)
  89. CYBRBIDTG_NominalHeight    EQU    (CYBRBIDTG_TB+2)
  90. CYBRBIDTG_MonitorID    EQU    (CYBRBIDTG_TB+3)
  91. CYBRBIDTG_BoardName    EQU    (CYBRBIDTG_TB+5)
  92.  
  93.  
  94. PIXFMT_LUT8        EQU    (0)
  95. PIXFMT_RGB15        EQU    (1)
  96. PIXFMT_BGR15        EQU    (2)
  97. PIXFMT_RGB15PC        EQU    (3)
  98. PIXFMT_BGR15PC        EQU    (4)
  99. PIXFMT_RGB16        EQU    (5)
  100. PIXFMT_BGR16        EQU    (6)
  101. PIXFMT_RGB16PC        EQU    (7)
  102. PIXFMT_BGR16PC        EQU    (8)
  103. PIXFMT_RGB24        EQU    (9)
  104. PIXFMT_BGR24        EQU    (10)
  105. PIXFMT_ARGB32        EQU    (11)
  106. PIXFMT_BGRA32        EQU    (12)
  107. PIXFMT_RGBA32        EQU    (13)
  108.  
  109. PIXFMT_CNT        EQU    (14)
  110.  
  111. ;
  112. ; SrcRectangle formats defines for xxxPixelArray() calls
  113. ;
  114.  
  115. RECTFMT_RGB        EQU    (0)
  116. RECTFMT_RGBA        EQU    (1)
  117. RECTFMT_ARGB        EQU    (2)
  118. RECTFMT_LUT8        EQU    (3)
  119. RECTFMT_GREY8        EQU    (4)
  120.  
  121.  
  122. ;
  123. ; Parameters for CVideoCtrlTagList()
  124. ;
  125.  
  126. SETVC_DPMSLevel        EQU    ($88002001)
  127.  
  128. DPMS_ON            EQU    (0)    ; Full operation
  129. DPMS_STANDBY        EQU    (1)    ; Optional state of minimal power reduction
  130. DPMS_SUSPEND        EQU    (2)    ; Significant reduction of power consumption
  131. DPMS_OFF        EQU    (3)    ; Lowest level of power consumption
  132.  
  133.  
  134. ;
  135. ; Parameters for LockBitMapTagList()
  136. ;
  137.  
  138. LBMI_WIDTH        EQU    ($84001001)
  139. LBMI_HEIGHT        EQU    ($84001002)
  140. LBMI_DEPTH        EQU    ($84001003)
  141. LBMI_PIXFMT        EQU    ($84001004)
  142. LBMI_BYTESPERPIX    EQU    ($84001005)
  143. LBMI_BYTESPERROW    EQU    ($84001006)
  144. LBMI_BASEADDRESS    EQU    ($84001007)
  145.  
  146.  
  147. ;
  148. ; Parameters for UnLockBitMapTagList()
  149. ;
  150.  
  151. UBMI_UPDATERECTS    EQU    ($85001001)
  152. UBMI_REALLYUNLOCK    EQU    ($85001002)
  153.  
  154.  
  155. ;                              
  156. ; Message passed to the DoCDrawMethodTagList()
  157. ; hook function
  158. ;                              
  159.  
  160.     STRUCTURE    CDrawMsg,0
  161.             APTR    cdm_MemPtr
  162.             ULONG   cdm_offx
  163.             ULONG   cdm_offy
  164.             ULONG   cdm_xsize
  165.             ULONG   cdm_ysize
  166.             UWORD   cdm_BytesPerRow
  167.             UWORD   cdm_BytesPerPix
  168.             UWORD   cdm_ColorModel
  169.         LABEL    cdm_SIZEOF
  170.  
  171. ;
  172. ; Colour Table source formats for WriteLUTPixelArray()
  173. ;
  174.  
  175. CTABFMT_XRGB8    EQU    (0)    ; ULONG [] table
  176.                 ; X,R,G,B order, 8-bits-per-gun
  177.  
  178.  
  179.  
  180. ;
  181. ; graphics.library/AllocBitmap() extended flags
  182. ;
  183.  
  184.  
  185. BMB_SPECIALFMT    EQU    (7)
  186. BMF_SPECIALFMT    EQU    (0x80)
  187.  
  188.             ENDC
  189.  
  190.